package com.yiwyn;

public class TestC {


    static {
        System.out.println("testC语法块");
    }


    public void test() {
        StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
        System.out.println(Main.class.getName());
        for (StackTraceElement stackTraceElement : stackTrace) {
            System.out.println(stackTraceElement.getClassName());
            System.out.println(Main.class.getName().equals(stackTraceElement.getClassName()));
        }
    }

}
